/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.service.friends;

import com.server.common.persistence.Page;
import com.server.common.service.CrudService;
import com.server.modules.sys.dao.friends.FriendsDao;
import com.server.modules.sys.entity.friends.Friends;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 好友管理Service
 * @author 王磊
 * @version 2016-09-02
 */
@Service
@Transactional(readOnly = true)
public class FriendsService extends CrudService<FriendsDao, Friends> {

	public Friends get(String id) {
		return super.get(id);
	}
	
	public List<Friends> findList(Friends friends) {
		return super.findList(friends);
	}
	
	public Page<Friends> findPage(Page<Friends> page, Friends friends) {
		return super.findPage(page, friends);
	}
	
	@Transactional(readOnly = false)
	public void save(Friends friends) {
		super.save(friends);
	}
	
	@Transactional(readOnly = false)
	public void delete(Friends friends) {
		super.delete(friends);
	}

	public Friends getIds(Friends friends){ return dao.getIds(friends);}
	
}